// svg配置代码
import 'virtual:svg-icons-register'
//引入自定义插件对象:注册整个项目全局组件
import gloalComponent from '@/components'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from '@/App.vue'
import router from './router'
import pinia from '@/store'
//引入模板的全局的样式
import '@/styles/index.scss'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn
})
//安装自定义插件
app.use(gloalComponent)
app.use(pinia)
app.use(router)
import '../permisstion'
//引入自定义指令文件
import { isHasButton } from '@/directive/has'
isHasButton(app)
app.mount('#app')
